package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @date 2021/2/21 17:38
 * @desc
 */
@RestController
public class KillTestController {

    /**
     * curl -X GET http://localhost:9100/web/killTest
     * kill -15 592519
     * @throws InterruptedException
     */
    @GetMapping("killTest")
    public void killTest() throws InterruptedException {
        System.out.println("开始执行");
        Thread.sleep(20000);
        System.out.println("结束执行");
    }
}
